<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>

    <link rel="stylesheet" href="./font/iconfont.css" />

    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      .wrap {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      .header {
        width: 7.5rem;
        height: 0.96rem;
        display: flex;
        justify-content: space-between;
      }

      .logo_wrap {
        width: 1.22rem;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      .logo {
        width: 0.69rem;
        height: 0.63rem;
      }

      ul {
        display: flex;
      }

      li {
        list-style: none;
        line-height: 0.96rem;
        padding: 0 0.27rem;
        font-size: 0.3rem;
        color: #9ea3ae;
        position: relative;
      }

      /* 伪元素选择器 */
      /* 用css的方式写元素 */
      /* after就是在.active这个元素里面的最后添加一个元素 */
      .active::after {
        content: "";
        width: 0.6rem;
        height: 0.06rem;
        background-color: #d6322e;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
      }
      /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); */
    </style>
  </head>
  <body>
    <div class="wrap">
      <div class="header">
        <div class="logo_wrap">
          <img src="./images/logo.png" class="logo" alt="" />
        </div>

        <ul>
          <li>热榜</li>
          <li>推荐</li>
          <li class="active">赛事</li>
        </ul>
        <div class="logo_wrap">
          <span class="iconfont icon-search"></span>
        </div>
      </div>
    </div>

    <script src="./js/flexible.js"></script>
  </body>
</html>
